import { sscanf } from 'scanf';

const line = '[shuoGG:123]';

const ret = sscanf(line, '[%s:%d]', 'name', 'num');
console.log(ret);
